package com.cgbl.service.vm

import android.app.Application
import com.robot.base.base.vm.GLBaseViewModel
import com.robot.base.configs.AppConstants
import com.robot.base.util.arouter.ARouterUtil
import me.goldze.mvvmhabit.binding.command.BindingAction
import me.goldze.mvvmhabit.binding.command.BindingCommand

class WorkViewModel(application: Application) : GLBaseViewModel(application) {


    val toTeamManagerCommand = BindingCommand<Any>(BindingAction {
        ARouterUtil.goToActivity(AppConstants.Router.Project.A_TEAM_MANAGER)
    })

    val toMemberManagerCommand = BindingCommand<Any>(BindingAction {
        ARouterUtil.goToActivity(AppConstants.Router.Project.A_MEMBER_MANAGER)
    })

    val toProjectManagerCommand = BindingCommand<Any>(BindingAction {
        ARouterUtil.goToActivity(AppConstants.Router.Project.A_PROJECT_LIST)
    })
}